<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D练习</title>
    <link rel="stylesheet" href="./index4.css">
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: yellowgreen;
            float: left;
            margin-right: 50px;
            text-align: center;
            line-height: 200px;
        }
        .box1 {
            transition: 0.2s linear;
        }
        .box1:hover {
            transform: translateY(30px) 
        }
        .box2:hover {
            transform: scale(1.2);
        }
        .box3 {
            transition: 0.2s linear;
        }
        .box3:hover {
            transform: rotate(30deg);
        }
    </style>
</head>
<body>
    <div class="top-nav">
        <ul>
            <li><a href="./1css样式二.html">css样式二</a></li>
            <li><a href="./浮动练习.html">浮动与定位</a></li>
            <li><a target="_blank" href="./字体图标练习.html">字体图标</a></li>
            <li><a href="./键盘焦点与鼠标悬停.html">导航菜单</a></li>
        </ul>
        </div>
    <div class="box box1">位移</div>
    <div class="box box2">缩放</div>
    <div class="box box3">旋转</div>
    <div class="next"><a target="_blank" href="./3D练习.html">点我去3D练习</a></div>
</body>
</html>